package com.shinlooker.wzyd.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.shinlooker.wzyd.R;

/**
 * Created by shinlooker@qq.com
 * on 2020/6/7
 */
public class Detail1Activity extends AppCompatActivity {

    private TextView detail_text;
    private ImageView detial_img1;
    private ImageView detial_img2;
    private TextView detail_str1;
    private TextView detail_str2;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail1);
        detail_text = findViewById(R.id.detail_text);
        detial_img1 = findViewById(R.id.detial_img1);
        detial_img2 = findViewById(R.id.detial_img2);
        detail_str1 = findViewById(R.id.detail_str1);
        detail_str2 = findViewById(R.id.detail_str2);
        String title_text = getIntent().getStringExtra("title_text");
        int img1 = getIntent().getIntExtra("img1", 0);
        int img2 = getIntent().getIntExtra("img2", 0);
        int str1 = getIntent().getIntExtra("str1", 0);
        int str2 = getIntent().getIntExtra("str2", 0);

        detail_text.setText(title_text);
        detial_img1.setImageResource(img1);
        detial_img2.setImageResource(img2);
        detail_str1.setText(str1);
        detail_str2.setText(str2);

    }
}
